import http from '../index';

export const getAll = (data) => http({
    url: '/api/notices/getNoticeAll?' + data,
    method: 'get',
    data
})

export const getDataBy = (data) => http({
    url: '/api/notices/getNoticeByInput?' + data,
    method: 'get',
    data
})

export const addData = (data) => http({
    url: '/api/notices',
    method: 'post',
    data
})

export const editData = (data) => http({
    url: '/api/notices/updateNoticeById',
    method: 'put',
    data
})

export const delData = (data) => http({
    url: '/api/notices/deleteNoticeById',
    method: 'delete',
    data
})

export const getPmhbh = () => http({
    url: '/api/notices/getPmhbh',
    method: 'get',
})

export const getWthtbhData = (data) => http({
    url: '/api/notices/getmassage?wthtbh=' + data,
    method: 'get',
    data
})

export const submit = (data) => http({
    url: '/api/notices/notiesSubmit?' + data,
    method: 'put',
    // data
})

export const shelves = (data) => http({
    url: '/api/notices/notiesShelves?' + data,
    method: 'put',
    // data
})